package com.hkts.beltweigher.master.service.serviceimpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hkts.beltweigher.master.entity.PowerDes;
import com.hkts.beltweigher.master.mapper.PowerDesMapper;
import com.hkts.beltweigher.master.service.IPowerDesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.List;
/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hml
 * @since 2024-04-10
 */
@Service
@Transactional
public class PowerDesServiceImpl extends ServiceImpl<PowerDesMapper, PowerDes> implements IPowerDesService {


    @Autowired
    private PowerDesMapper powerDesMapper;

    @Override
    public IPage<PowerDes> selectPage(Page<PowerDes> page, PowerDes powerDes){
        QueryWrapper<PowerDes> query=Wrappers.query();
        return powerDesMapper.selectPage(page,query);
        }


    @Override
    public List<PowerDes> selectList(PowerDes powerDes){
        QueryWrapper<PowerDes> query=Wrappers.query();
        return powerDesMapper.selectList(query);
        }


}
